package com.cip.admin.service.impl;

import java.util.List;

import com.cip.admin.dao.CIPLoggerDAO;
import com.cip.admin.model.CIPLogger;
import com.cip.admin.service.CIPLoggerService;

public class CIPLoggerServiceImpl implements  CIPLoggerService{
	
	private CIPLoggerDAO cipLoggerDAO;
	
	public List<String> getAllLoggedUserList() throws Exception{
		return cipLoggerDAO.getAllLoggedUserList();
	}
	
	public CIPLogger saveOrUpdateLogger(CIPLogger cipLogger) throws Exception{
		return cipLoggerDAO.saveOrUpdateLogger(cipLogger);
	}
	
	public CIPLogger getCIPLoggerByUser(String loginUser) throws Exception{
		return cipLoggerDAO.getCIPLoggerByUser(loginUser);
	}
	
	public List<String> getAllLoggedFriendsList(int requestFriendId) throws Exception{
		return cipLoggerDAO.getAllLoggedFriendsList(requestFriendId);
	}

	public CIPLoggerDAO getCipLoggerDAO() {
		return cipLoggerDAO;
	}

	public void setCipLoggerDAO(CIPLoggerDAO cipLoggerDAO) {
		this.cipLoggerDAO = cipLoggerDAO;
	}
	
	public CIPLogger getCIPLoggerById(int loginId) throws Exception{
		return cipLoggerDAO.getCIPLoggerById(loginId);
	}
}
